<HTML>
<HEAD>
<TITLE>Entry Data Kegiatan Baru</TITLE>
</HEAD>
<BODY>
<p>ENTRY DATA KEGIATAN BARU</p>
<hr>
<form method="POST" action="add_kegiatan.php">
	<p>Nama Kegiatan : <input type="text" name="nama" size="20"></p>
	<p>Jenis Kegiatan : <select size="1" name="jenis">
	<option value="1">I. Kegiatan Ilmiah / Penalaran</option>
	<option value="2">II. Minat Bakat</option>
	<option value="3">III. Lain - Lain</option>
	</select></p>
	<p>Tanggal Kegiatan : <select size="1" name="tgl">
	<option value="01">01</option>
	<option value="02">02</option>
	<option value="03">03</option>
	<option value="04">04</option>
	<option value="05">05</option>
	<option value="06">06</option>
	<option value="07">07</option>
	<option value="08">08</option>
	<option value="09">09</option>
	<option value="10">10</option>
	<option value="11">11</option>
	<option value="12">12</option>
	<option value="13">13</option>
	<option value="14">14</option>
	<option value="15">15</option>
	<option value="16">16</option>
	<option value="17">17</option>
	<option value="18">18</option>
	<option value="19">19</option>
	<option value="20">20</option>
	<option value="21">21</option>
	<option value="22">22</option>
	<option value="23">23</option>
	<option value="24">24</option>
	<option value="25">25</option>
	<option value="26">26</option>
	<option value="27">27</option>
	<option value="28">28</option>
	<option value="29">29</option>
	<option value="30">30</option>
	<option value="31">31</option>
	</select><select size="1" name="bln">
	<option value="01">Januari</option>
	<option value="02">Februari</option>
	<option value="03">Maret</option>
	<option value="04">April</option>
	<option value="05">Mei</option>
	<option value="06">Juni</option>
	<option value="07">Juli</option>
	<option value="08">Agustus</option>
	<option value="09">September</option>
	<option value="10">Oktober</option>
	<option value="11">November</option>
	<option value="12">Desember</option>
	</select><select size="1" name="thn">
	<option value="2006">2006</option>
	<option value="2007">2007</option>
	<option value="2008">2008</option>
	</select></p>
	<p><input type="submit" value="Simpan" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>
<BR>
KOREKSI NAMA KEGIATAN YANG SUDAH DIMASUKKAN
<HR>
	<form method="POST" action="edit_kegiatan.php">
	<p>Kegiatan : <select size="1" name="kegiatan">
	<?
		include("../connect.php");
		$pilih=mysql_select_db("uwika_skk",$conn);
		$sqlstr="select kode,nama,date_format(tanggal,'%d %M %Y'), tanggal from kegiatan order by tanggal";
		$hasil=mysql_query($sqlstr);
		$row = mysql_fetch_row($hasil);
		do {
			list($kode,$nama,$tanggal,$tgllama) = $row;
			echo "<option value=\"$kode\">$nama ($tanggal)</option>";
		} while ($row=mysql_fetch_row($hasil));
		?>
	</select>
	<p>Nama Kegiatan Baru : <input type="text" name="namabaru" size="100" maxlength="100"></p>
	<p><input type="submit" value="Simpan" name="B3"><input type="reset" value="Reset" name="B4"></p>
</form>
<BR>
HAPUS NAMA KEGIATAN YANG SUDAH DIMASUKKAN
<HR>
	<form method="POST" action="del_kegiatan.php">
	<p>Kegiatan : <select size="1" name="kegiatan">
	<?
		include("../connect.php");
		$pilih=mysql_select_db("uwika_skk",$conn);
		$sqlstr="select kode,nama,date_format(tanggal,'%d %M %Y') from kegiatan order by tanggal";
		$hasil=mysql_query($sqlstr);
		$row = mysql_fetch_row($hasil);
		do {
			list($kode,$nama,$tanggal) = $row;
			echo "<option value=\"$kode\">$nama ($tanggal)</option>";
		} while ($row=mysql_fetch_row($hasil));
		?>
	</select>
	<p><input type="submit" value="Hapus" name="B5"></p>
</form>
<BR><I>
*) Apabila terjadi kesalahan di dalam memasukkan data, segera hubungi : Honggianto di line 130. Terimakasih.
</I>
</BODY>
</HTML>